<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DataListCustomPage.aspx.cs" Inherits="DataListCustomPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1" RepeatColumns="3"
            RepeatDirection="Horizontal" DataKeyField="RecruiterID" OnItemDataBound="DataList1_ItemDataBound">
            <ItemTemplate>
                <table style="width: 350px">
                    <tr>
                        <td style="width: 110px">
                            <asp:Label ID="Label2" runat="server" Text="RecruiterID" Width="107px"></asp:Label></td>
                        <td style="width: 12px">
                        </td>
                        <td>
                            <asp:Label ID="Label1" runat="server" Text='<%# Eval("RecruiterID", "{0}") %>' Width="228px"></asp:Label></td>
                    </tr>
                    <tr>
                        <td style="width: 110px">
                            <asp:Label ID="Label3" runat="server" Text="Email" Width="106px"></asp:Label></td>
                        <td style="width: 12px">
                        </td>
                        <td>
                            <asp:Label ID="Label6" runat="server" Text='<%# Eval("Email", "{0}") %>' Width="231px"></asp:Label></td>
                    </tr>
                    <tr>
                        <td style="width: 110px">
                            <asp:Label ID="Label5" runat="server" Text="Company Name" Width="104px"></asp:Label></td>
                        <td style="width: 12px">
                        </td>
                        <td>
                            <asp:Label ID="Label8" runat="server" Text='<%# Eval("ContactName", "{0}") %>' Width="231px" Font-Bold="True"></asp:Label></td>
                    </tr>
                    <tr>
                        <td style="width: 110px">
                            <asp:Label ID="Label7" runat="server" Text="Contact Name" Width="104px"></asp:Label></td>
                        <td style="width: 12px">
                        </td>
                        <td>
                            <asp:Label ID="Label4" runat="server" Text='<%# Eval("Email", "{0}") %>' Width="231px"></asp:Label></td>
                    </tr>
                    <tr>
                        <td style="width: 110px">
                            <asp:Label ID="Label10" runat="server" Text="Phone" Width="104px"></asp:Label></td>
                        <td style="width: 12px">
                        </td>
                        <td>
                            <asp:Label ID="Label12" runat="server" Text='<%# Bind("Phone", "{0}") %>' Width="231px"></asp:Label></td>
                    </tr>
                    <tr>
                        <td style="width: 110px">
                            <asp:Label ID="Label11" runat="server" Text="Address" Width="104px"></asp:Label></td>
                        <td style="width: 12px">
                        </td>
                        <td>
                            <asp:Label ID="Label13" runat="server" Text='<%# Bind("Address", "{0}") %>' Width="231px"></asp:Label></td>
                    </tr>
                    <tr>
                        <td style="width: 110px">
                            Activate</td>
                        <td style="width: 12px">
                        </td>
                        <td>
                            <asp:CheckBox ID="CheckBox1" runat="server" Checked='<%# Bind("Activate") %>' /></td>
                    </tr>
                </table>
                <br />
            </ItemTemplate>
        </asp:DataList>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:RecruitVietnamDbConnectionString %>"
            SelectCommand="SELECT TOP 10 RecruiterID,[Email], [CompanyName], [ContactName], [Address], [Phone], [Activate] FROM [tblRCAccounts]">
        </asp:SqlDataSource>
    
    </div>
    </form>
</body>
</html>
